<template>
    <div class="left-menu">
        <div class="left-menu-stage">
            <div class="left-menu-scene">
                <div class="menu-list">
                    <a-steps class="menu-list" v-model="step_current" direction="vertical" :current="current" @change="onStepChange"  size="small">
                        <a-step title="开案" status="finish">
                            <template>
                                    <p slot="description" style="color:limegreen;">已完成</p>
                            </template>
                        </a-step>
                        <a-step title="评估" status="finish">
                            <template>
                                <p slot="icon">
                                    <a-icon type="home"></a-icon>
                                </p>
                                <template slot="description">
                                    <p style="color:limegreen">已完成，可修改</p>
                                    <a-button><a-icon type="edit"></a-icon> 修改</a-button>
                                </template>
                            </template>
                        </a-step>
                        <a-step title="分析及计划" status="process">
                        <template>
                            <p slot="description" style="color:orangered">督导审核中</p>
                        </template>
                        </a-step>
                        <a-step title="介入" status="finish">
                            <template>
                                <p slot="description" style="color:darkred"><a-icon type="exclamation-circle" /> 督导驳回</p>
                            </template>
                        </a-step>
                        <a-step title="阶段性评估" disabled="true"/>
                        <a-step title="结案" disabled="true"/>
                        <a-step title="跟踪" disabled="true"/>
                    </a-steps>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    import Template from "../../src/pages/ingi-resource/template";
    export default {
        name: "leftSteps",
        components: {Template},
        props:{
            steps:{
                type:Array,
                default(){
                    return [
                        {title:'',description:'',}
                    ];
                }
            }
        },
        data(){
            return {
                current:0,
                step_current:0,
            }
        },
        methods:{
            onStepChange(item){
                this.$emit('stepChanged',item);
            }
        }
    }
</script>

<style scoped>

</style>